package com.xgf.exception.handler.comment;

public class ResponseUtility {
	public static final String token_prefix = "token.";
	// successful operation
	public static final int SUCCESS_CODE = 200;
	public static final int ERROR_PARAM_BAD = 400;
	public static final String ERROR_PARAM_BAD_MSG = "Params is wrong!";
	public static final int ERROR_ROLE_EXIST = 401;
	public static final String ERROR_ROLE_EXIST_MSG = "Role Already Exist!";
	public static final int ERROR_ROLE_CREATE_EXP = 402;
	public static final String ERROR_ROLE_CREATE_EXP_MSG = "Role create exception!";
	public static final int ERROR_ROLE_NOT_EXIST = 406;
	public static final String ERROR_ROLE_NOT_EXIST_MSG = "Role not Exist!";
	public static final int ERROR_CLIENT_CREATE_EXP = 403;
	public static final String ERROR_CLIENT_CREATE_EXP_MSG = "Client create exception!";
	public static final int ERROR_USER_EXIST = 404;
	public static final String ERROR_USER_EXIST_MSG = "User Already Exist!";
	public static final int ERROR_USER_CREATE_EXP = 405;
	public static final String ERROR_USER_CREATE_EXP_MSG = "User create exception!";
	public static final int ERROR_CLIENT_NOT_EXIST = 407;
	public static final String ERROR_CLIENT_NOT_EXIST_MSG = "Client not Exist!";
	public static final int ERROR_USER_NOT_EXIST = 408;
	public static final String ERROR_USER_NOT_EXIST_MSG = "User not Exist!";
	public static final String ERROR_USER_NOT_EXIST_MSG_CN = "用户不存在";
	public static final int ERROR_PWD_INCORRECT = 409;
	public static final String ERROR_PWD_INCORRECT_MSG = "Incorrect username or password!";
	public static final String ERROR_PWD_INCORRECT_MSG_CN = "输入的用户名和密码错误";
	public static final int ERROR_TOKEN_CREATE_EXP = 410;
	public static final String ERROR_TOKEN_CREATE_EXP_MSG = "Token create exception!";
	public static final int ERROR_ROLE_DELETE_EXP = 411;
	public static final String ERROR_ROLE_DELETE_EXP_MSG = "Role delete exception!";
	public static final int ERROR_USER_DELETE_EXP = 412;
	public static final String ERROR_USER_DELETE_EXP_MSG = "User delete exception!";
	public static final int ERROR_USER_LOCKED = 413;
	public static final String ERROR_USER_LOCKED_MSG = "Password error more than 3 times, user is locked";
	public static final String ERROR_USER_LOCKED_MSG_CN = "密码错误超过3次，用户被锁定";
	public static final int ERROR_ROLE_USER_REL = 414;
	public static final String ERROR_ROLE_USER_REL_MSG = "Can not delete role, Role associated with the user. ";
	public static final String ERROR_ROLE_USER_REL_MSG_CN = " 用户与该角色有关联，不能删除";
	public static final int ERROR_GROUP_USER_REL = 415;
	public static final String ERROR_GROUP_USER_REL_MSG = "Can not delete group, Group associated with the users. ";
	public static final String ERROR_GROUP_USER_REL_MSG_CN = " 用户与该项目有关联，不能删除";
	public static final int ERROR_PWD_OVERTIME = 416;
	public static final String ERROR_PWD_OVERTIME_MSG = "Password overdue. ";
	public static final int ERROR_IP_LOCKED = 417;
	public static final String ERROR_IP_LOCKED_MSG = "IP has been limited to login ";
	public static final String ERROR_IP_LOCKED_MSG_CN = " IP被限制登录";
	public static final int ERROR_USER_PERIOD = 418;
	public static final String ERROR_USER_PERIOD_MSG = "User access time is limited ";
	public static final String ERROR_USER_PERIOD_MSG_CN1 = "用户只能在";
	public static final String ERROR_USER_PERIOD_MSG_CN2 = "时间段内访问";
	public static final int ERROR_VERSION_CREATE_EXP = 420;
	public static final String ERROR_VERSION_CREATE_EXP_MSG = "Version creat exception!";
	public static final int ERROR_VERSION_REVERT_EXP = 421;
	public static final String ERROR_VERSION_REVERT_EXP_MSG = "Version revert exception!";
	public static final int ERROR_TOKEN_EXP = 422;
	public static final String ERROR_TOKEN_EXP_MSG = "Token has expired!";
	public static final int ERROR_ZOOKEEPER_API = 423;
	public static final String ERROR_ZOOKEEPER_API_MSG = "Zookeeper error!";
	public static final int ERROR_NOT_NULL = 424;
	public static final String ERROR_NOT_NULL_MSG = "不可为空!";
	public static final int ERROR_DELETE_APP = 425;
	public static final String ERROR_DELETE_APP_MSG = "授权信息删除失败!";
	public static final int ERROR_UPDATE_APP = 426;
	public static final String ERROR_UPDATE_APP_MSG = "授权信息更新失败!";
	public static final int ERROR_APP_NOT_EXIST = 427;
	public static final String ERROR_APP_NOT_EXIST_MSG = "授权未通过!";
	public static final int ERROR_APP_EXIST = 428;
	public static final String ERROR_APP_EXIST_MSG = "授权信息已存在!";
	public static final int ERROR_DATE_TRANS = 429;
	public static final String ERROR_DATE_TRANS_MSG = "日期转换错误!";
	public static final int ERROR_SWAGGER_TRANS = 430;
	public static final String ERROR_SWAGGER_TRANS_MSG = "Swagger transformat error!";
	public static final int ERROR_OTHER = 499;
}
